package qq.listener;

import love.forte.common.ioc.annotation.Beans;
import love.forte.simbot.annotation.OnFriendAddRequest;
import love.forte.simbot.api.message.assists.Flag;
import love.forte.simbot.api.message.events.FriendAddRequest;
import love.forte.simbot.api.sender.Setter;
import net.mamoe.mirai.event.events.FriendAddEvent;

@Beans
public class FriendListener {
    @OnFriendAddRequest
    public void addFriend(FriendAddRequest request, Setter setter){
        setter.setFriendAddRequest(request.getFlag(), null,true,false);
    }
}
